package com.xujl.mvcbind.bean;

import java.util.Objects;

public class TwoMultiEntity implements ProviderMultiEntity {
    private String url;

    public TwoMultiEntity (String url) {
        this.url = url;
    }

    public String getUrl () {
        return url;
    }

    public void setUrl (String url) {
        this.url = url;
    }

    @Override
    public int getProviderType () {
        return TYPE_ONE;
    }

    @Override
    public boolean equals (Object o) {
        if (this == o) return true;
        if (!(o instanceof TwoMultiEntity)) return false;
        TwoMultiEntity that = (TwoMultiEntity) o;
        return getUrl().equals(that.getUrl());
    }

    @Override
    public int hashCode () {
        return Objects.hash(getUrl());
    }
}
